-
Notifications
You must be signed in to change notification settings - Fork 1
Wr/refactor @W-20812411@ #296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
8826f83 to
46f5100
Compare
2a92d83 to
ea7516e
Compare
f8ddec7 to
d32418e
Compare
test/nuts/shared-setup.ts
Outdated
| const isWindows = process.platform === 'win32'; | ||
| const waitTime = isWindows ? 10 * 60 * 1000 : 5 * 60 * 1000; // 10 minutes on Windows, 5 minutes otherwise | ||
| console.log(`waiting ${waitTime / 1000 / 60} minutes for org to be ready (platform: ${process.platform})`); | ||
| await sleep(waitTime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than a hard wait time of 5 or 10 minutes, I'd rather have a threshold where we stop trying to do the setup. This will allow faster test runs. I think we can keep this for now, but if it causes a problem we should revisit this strategy.
| execCmd<AgentPublishAuthoringBundleResult>( | ||
| `agent publish authoring-bundle --api-name ${invalidApiName} --target-org ${getUsername()} --json`, | ||
| { ensureExitCode: 1 } | ||
| { ensureExitCode: 2 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know why this is returning 2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we call this.error(errormessage) in the command, which has an exit code 2...
What does this PR do?
What issues does this PR fix or reference?
consumes forcedotcom/agents#202
@W-20812411@